//
//  BaseSlider.m
//  QuDanOEM
//
//  Created by wmz on 2021/11/6.
//

#import "BaseSlider.h"

@implementation BaseSlider

- (void)awakeFromNib{
    [super awakeFromNib];
    if (self.customImage) {
        [self setThumbImage:[UIImage imageNamed:self.customImage] forState:UIControlStateNormal];
    }
}

//- (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value{
//    if (self.customImage) {
//        rect.origin.x=rect.origin.x-10;
//        rect.size.width=rect.size.width+20;
//        return CGRectInset([super thumbRectForBounds:bounds trackRect:rect value:value],10,10);
//    }
//    return  [super thumbRectForBounds:bounds trackRect:rect value:value];
//}
@end
